#ifndef __SN32F288_I2C_H
#define __SN32F288_I2C_H


/*_____ I N C L U D E S ____________________________________________________*/
#include	"SN32F280.h"
#include <SN32F200_Def.h>


/*_____ D E F I N I T I O N S ______________________________________________*/
#define	I2C_FIFO_LEN		32
extern uint8_t hwI2C_Fifo[];
/*_____ M A C R O S ________________________________________________________*/


/*_____ D E C L A R A T I O N S ____________________________________________*/
void I2C_Start(void);
void I2C_Stop(void);
uint8_t I2C_CACK(void);
void I2C_MNACK(void);
void I2C_MACK(void);
void WT_Byte(uint8_t data);
uint8_t RD_Byte(void);
void WT_I2C_1Byte(uint8_t Device_Addr,uint8_t WR_Addr,uint8_t data);
void WT_I2C_NByte_Const(uint8_t Device_Addr,uint8_t WR_Addr,uint8_t data,uint8_t len);
void WT_I2C_NByte_Val(uint8_t Device_Addr,uint8_t WR_Addr,uint8_t len);
void RD_I2C_NByte_Val(uint8_t Device_Addr,uint8_t WR_Addr,uint8_t len);
#endif	/*__SN32F288_I2C_H*/
